import http from '@/assets/utils/http.js';

export function Login(parmas){//登录
	return http.post('api/testLoginController/login', parmas, "")
}
export function $FindMyAccountMess(){//查看个人信息
	return http.get('api/wqunAccountController/findMyAccountMess', "","")
}
export function ChangeMyMess(parmas){//查看个人信息
	return http.post('api/wqunAccountController/changeMyAccount', parmas,"")
}
export function UploadImg(parmas){//上传图片
	return http.post('api/util/uploadImg', parmas,"")
}
export function $deleteUploadImg(parmas){//删除图片
	return http.post('api/util/deleteUploadImg', parmas,"")
}
export function findMyLickArticle(parmas){//查看自己点缀文章
	return http.get('api/blog/findLikeArticleById/'+parmas, "","")
}
export function findMyCollectArticle(parmas){//查看自己点缀文章
	return http.get('api/blog/findCollectArticleById/'+parmas, "","")
}
export function findMyLookArticle(parmas){//查看自己浏览的文章
	return http.get('api/blog/findLookArticleById/'+parmas, "","")
}
export function findMyAccountType(parmas){//查看自己的身份信息
	return http.get('api/wqunAccountController/findMyAccountType', "","")
}
export function findAllArticle(){//用户查看所有文章
	return http.get('api/blog/findAllArticle', "","")
}
export function searchAllArticle(parmas){//搜索查看文章
	return http.get('api/blog/searchAllArticle/'+parmas, "","")
}
export function $isLike(parmas){//是否点赞该文章
	return http.post('api/blog/isLike',parmas,"")
}
export function $isCollect(parmas){//是否收藏该文章
	return http.post('api/blog/isCollect', parmas,"")
}
export function $commentNumById(parmas){//文章评论数
	return http.get('api/wqunComment/commentNumById/'+parmas, "","")
}
export function $findArticleById(id,uid){//用户浏览文章
	return http.get('api/blog/findArticleById/'+id+'/' + uid,"","")
}
export function $like(parmas){//用户点赞，取消点赞
	return http.post('api/blog/like',parmas,"")
}
export function $collect(parmas){//用户收藏，取消收藏
	return http.post('api/blog/collect',parmas,"")
}
export function $findCommentById(parmas){//查看评论
	return http.get('api/wqunComment/findCommentById/'+parmas,"","")
}
export function $deleteComment(parmas){//删除评论
	return http.get('api/wqunComment/deleteComment/'+parmas,"","")
}
export function $addComment(parmas){//发表评论
	return http.post('api/wqunComment/addComment',parmas,"")
}
export function $findMyCommunitySetUp(parmas){//获取我的社区评论设置
	return http.get('api/wqunUserSetUp/findAllCommunity/'+parmas,"","")
}
export function $updateByCommunitySetUp(parmas){//修改我的社区评论设置
	return http.post('api/wqunUserSetUp/updateByCommunity',parmas,"")
}
export function $findAllCommunityFirst(parmas){//第一次获取社区信息
	return http.get('api/wqunCommunity/findAllCommunityFirst/'+parmas,"","")
}
export function $findAllCommunity(startId,total){//自动刷新获取信息
	return http.get('api/wqunCommunity/findAllCommunity/'+startId + '/' + total,"","")
}
export function $addCommunity(parmas){//自动刷新获取信息
	return http.post('api/wqunCommunity/addCommunity',parmas,"")
}
export function $deleteCommunityById(id,uid){//自动刷新获取信息
	return http.get('api/wqunCommunity/deleteCommunityById/'+id+'/' + uid,"","")
}
export function $findAccountPublicById(parmas){//获取用户公共信息
	return http.get('api/wqunAccountController/findAccountPublicById/'+parmas,"","")
}
export function $communityUserMess(){//获取社区用户列表
	return http.get('api/wqunCommunity/communityUserMess',"","")
}
export function $accountNumById(){//用户数量统计
	return http.get('api/wqunAccountController/accountNumById',"","")
}
export function $accountAddAtSeven(){//7日内新增人数统计
	return http.get('api/wqunAccountController/accountAddAtSeven',"","")
}
export function $AllBlogNum(){//文章总数统计
	return http.get('api/blog/AllBlogNum',"","")
}
export function $allCommentNum(){//评论总数统计
	return http.get('api/wqunComment/allCommentNum',"","")
}
export function $allProjectNum(){//项目总数统计
	return http.get('api/wqunProject/allProjectNum',"","")
}
export function $tenYearData(){//围群10年数据统计
	return http.get('api/wqunDataStatisticsController/tenYearData',"","")
}
export function $sendTextMail(parmas){//发送邮件验证码
	return http.get('api/email/sendTextMail/'+parmas,"","")
}
export function $bindEmailCode(parmas){//发送邮件验证码
	return http.get('api/email/bindEmailCode/'+parmas,"","")
}
export function $updateMyEmail(emial,code){//修改邮箱
	return http.get('api/wqunAccountController/updateMyEmail/'+emial+'/'+code,"","")
}
export function $updatePassCode(){//修改密码短信发送
	return http.get('api/email/updatePassCode',"","")
}
export function $codeIsCorrect(code){//验证验证码是否正确
	return http.get('api/email/codeIsCorrect/'+code,"","")
}
export function $changeAccountPass(code){//修改用户密码
	return http.get('api/wqunAccountController/changeAccountPass/'+code,"","")
}
export function $loginOut(){//退出登录
	return http.get('api/testLoginController/loginOut',"","")
}
export function $register(parmas){//用户注册
	return http.post('api/testLoginController/register',parmas,"")
}
export function $emailCodeIsCorrect(email,code){//找回密码验证码验证
	return http.get('api/email/emailCodeIsCorrect/'+email + "/"+code,"","")
}
export function $findAccountPass(email,code){//找回密码修改密码
	return http.get('api/wqunAccountController/findAccountPass/'+email + "/"+code,"","")
}






//管理员部分
export function $findAccountPage(pageSize,currentPage,selectFind,selectFindValue){//分页查找用户
	return http.get('api/wqunAccountController/findAccountPage/'+pageSize + "/"+currentPage+"/" +selectFind + "/"+selectFindValue,"","")
}
export function $deleteUserById(uid){//删除某个用户
	return http.get('api/wqunAccountController/deleteById/'+uid ,"","")
}
export function $changeAccount(parmas){//修改某个用户的信息
	return http.post('api/wqunAccountController/changeAccount' ,parmas,"")
}
export function $resettingAccountPass(parmas){//重置密码
	return http.get('api/wqunAccountController/resettingAccountPass/' + parmas,"","")
}
export function $findAllProject(){//查找所有文章
	return http.get('api/wqunProject/findAllProject',"","")
}
export function $findProjectById(id){//根据id查找文章
	return http.get('api/wqunProject/findProjectById/'+id,"","")
}
export function $deleteUploadProject(parmas){//删除上传oos的项目
	return http.post('api/util/deleteUploadProject',parmas,"")
}
export function $deleteProject(id){//删除项目
	return http.get('api/wqunProject/deleteProject/'+id,"","")
}
export function $addProject(parmas){//增加项目
	return http.post('api/wqunProject/addProject',parmas,"")
}
export function $updateProject(parmas){//修改项目
	return http.post('api/wqunProject/updateProject',parmas,"")
}
export function $addArticle(parmas){//增加文章
	return http.post('api/blog/addArticle',parmas,"")
}
export function $deleteArticle(parmas){//删除文章
	return http.get('api/blog/deleteArticle/'+parmas,"","")
}
export function $updateArticle(parmas){//修改文章
	return http.post('api/blog/updateArticle',parmas,"")
}
export function $deleteBan(parmas){//管理员解除某用户禁言
	return http.get('api/wqunCommunityBan/deleteBan/'+parmas,"","")
}
export function $addBan(parmas){//管理员禁言某用户
	return http.get('api/wqunCommunityBan/addBan/'+parmas,"","")
}
export function $findMenuPage(pageSize,currentPage,selectFind,selectFindValue){//分页查找用户
	return http.get('api/sysMenu/findMenuPage/'+pageSize + "/"+currentPage+"/" +selectFind + "/"+selectFindValue,"","")
}
export function $bitMenu(parmas){//管理员管理权限
	return http.get('api/sysMenu/bitMenu/'+parmas,"","")
}
export function $findAllRole(){//管理员查找角色
	return http.get('api/wqunSysRole/findAllRole',"","")
}
export function $bitRole(parmas){//管理员管理角色
	return http.get('api/wqunSysRole/bitRole/'+parmas,"","")
}
export function $findAllMenu(parmas){//管理员查找角色权限
	return http.get('api/sysMenu/findAllMenu/'+parmas,"","")
}
export function $updateRoleMenu(parmas,roleId){//管理员查找角色权限
	return http.post('api/wqunSysRole/updateRoleMenu/'+roleId,parmas,"")
}
export function $addRole(parmas){//超级管理员添加角色
	return http.post('api/wqunSysRole/addRole',parmas,"")
}
export function $updateRole(parmas){//超级管理员修改角色
	return http.post('api/wqunSysRole/updateRole',parmas,"")
}
export function $getRoleById(parmas){//管理员查看某角色的权限
	return http.post('api/wqunSysRole/getRoleById',parmas,"")
}
export function $deleteRole(parmas){//超级用户删除某个角色的权限
	return http.post('api/wqunSysRole/deleteRole',parmas,"")
}
export function $updateMenu(parmas){//超级用户修改权限
	return http.post('api/sysMenu/updateMenu',parmas,"")
}
export function $restoreUserById(parmas){//超级用户恢复某个用户
	return http.get('api/wqunAccountController/restoreUserById/'+parmas,"","")
}
export function $addMenu(parmas){//超级用户添加权限
	return http.post('api/sysMenu/addMenu',parmas,"")
}
export function $addArticleTagType(parmas){//管理员添加标签类型
	return http.post('api/wqunArticleTagType/addArticleTagType',parmas,"")
}
export function $findAllArticleTagType(pageSize,currentPage,selectFind,selectFindValue){//分页查找文章标签类型
	return http.get('api/wqunArticleTagType/findAllArticleTagType/'+pageSize + "/"+currentPage+"/" +selectFind + "/"+selectFindValue,"","")
}
export function $updateArticleTagType(parmas){//管理员修改标签类型
	return http.post('api/wqunArticleTagType/updateArticleTagType',parmas,"")
}
export function $deleteArticleTagType(parmas){//管理员修改标签类型
	return http.post('api/wqunArticleTagType/deleteArticleTagType',parmas,"")
}

export function $findAllArticleTag(pageSize,currentPage,selectFind,selectFindValue){//分页查找文章标签
	return http.get('api/wqunArticleTag/findAllArticleTag/'+pageSize + "/"+currentPage+"/" +selectFind + "/"+selectFindValue,"","")
}
export function $addArticleTag(parmas){//管理员添加标签
	return http.post('api/wqunArticleTag/addArticleTag',parmas,"")
}
export function $findAllTag(){//管理员查找标签
	return http.get('api/wqunArticleTag/findAllTag',"","")
}
export function $updateArticleTag(parmas){//管理员修改标签
	return http.post('api/wqunArticleTag/updateArticleTag',parmas,"")
}
export function $deleteArticleTag(parmas){//管理员修改标签
	return http.post('api/wqunArticleTag/deleteArticleTag',parmas,"")
}
export function $findBolgTag(){//添加文章获取文章标签
	return http.get('api/blog/findBolgTag',"","")
}

